from m7_1 import check
from progressBar import *
with open("ids.txt") as f:
    data = f.readlines()

num = 0
print(f"{num:5d}",end="")
with open("error.txt","wt") as f:
    for id in data:
        num = num + 1
        #printProgressBar((num)/len(data),prefix="Progress:")
        print(f'\r {num/len(data)*100:5.2f}% {num:5d}:{id.rstrip() }', end='')
        if not check(id):
            f.write(id)


    